/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author MTI
 */
public class SalesWeeks {
    private int orderCount;
    private Date  startdate;
    private Date  enddate;

    public int getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(int orderCount) {
        this.orderCount = orderCount;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
        
    }

    public Date getEnddate() {
        Calendar c = Calendar.getInstance();
        c.setTime(startdate);
        c.add(Calendar.DATE,7);
        enddate = c.getTime();
        return enddate;
    }

    
}
